//方块
const Block = [
    // I
    [
        [0, 0, 0, 0],
        [1, 1, 1, 1],
        [0, 0, 0, 0],
        [0, 0, 0, 0]
    ],
    // J
    [
        [1, 0, 0],
        [1, 1, 1],
        [0, 0, 0]
    ],
    // L
    [
        [0, 0, 1],
        [1, 1, 1],
        [0, 0, 0]
    ],
    // O
    [
        [1, 1],
        [1, 1]
    ],
    // S
    [
        [0, 1, 1],
        [1, 1, 0],
        [0, 0, 0]
    ],
    // T
    [
        [0, 1, 0],
        [1, 1, 1],
        [0, 0, 0]
    ],
    // Z
    [
        [1, 1, 0],
        [0, 1, 1],
        [0, 0, 0]
    ]
]
//颜色
const BlockColor = ['#b900fd', '#fe0839', '#66fd00', '#ffdf00', '#ff7402', '#1100ff', '#00e7fe']
/**
 * 方格长度
 */
let blockSize = 20
//0.5秒下落速度
let fallDownSpeed = 500
//容器格数
let cWidth = 10
let cHeight = 20
let cWidthSize = cWidth * blockSize
let cHeightSize = cHeight * blockSize